/*
z-index:
	#bg 53 背景
	.menu 56 菜单
	.TitleBar 44 标题栏
	.BottomSheet 62 底部动作条
	.dialog 56 提示框
	.float-btns 50 浮动按钮
	.more 47 更多（...）
CSS结构：
	全局样式和基本样式
		#wrapper,.page 页面相关
	杂杂的组件
		#bg 背景
		.subtitle 二级标题
	按钮 .btn
	提示框 .dialog
	标题栏 .TitleBar
	列表 .list
	宫格 .GongGe
	底部动作条 .BottomSheet
	菜单 .menu
*/
/* 全局样式 */
* {
	-moz-user-select: none;
	box-sizing: border-box;
	font-family: sans-serif;
}

body {
	margin: 0;
	padding: 0;
	background-color: #EEEEEE;
	overflow: hidden;
	font-size: 14px;
}

a {
	text-decoration: none;
	background: none;
}

table>tbody {
	height: 100%;
	width: 100%;
}

#wrapper {
	height: 100%;
	width: 100%;
}

#wrapper .page {
	position: fixed;
	overflow: scroll;
	height: 100%;
	width: 100%;
	top: 0;
	padding-top: 50px;
}

#wrapper .page>.content {
	width: 100%;
	padding: 10px;
	height: 100%;
}

/*
 * 杂杂的一些组件
 * .checkbox 复选框
 * .radio 单选框
*/
#bg {
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	height: 100%;
	width: 100%;
	background-color: rgba(0,0,0,0.5);
	transition: 0.2s;
	z-index: 53;
}

.subtitle {
	height: 32px;
	font-size: 16px;
	line-height: 32px;
}

.checkbox {
	background-color: red;
	outline: 0;
}

/*
 * 组件：按钮
 * 按钮都包含.btn的class
 * 带有disabled标签或disabled样式均为禁用样式
 * .btn-flat为扁平按钮（对话框的那种）
 * .btn-float为圆形浮动按钮
 * .btn-raised为普通按钮
*/
.btn {
	display: inline-block;
	text-decoration: none;
	background-image: none;
	margin: 2px;
	outline: none;
	border: 0;
	text-align: center;
}

.btn:active,
.btn.active {
	outline: 0;
}

.btn.disabled,
.btn[disabled] {
	box-shadow: none;
	opacity: 0.65;
}

.btn-block {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.btn-flat {
	padding-left: 18px;
	padding-right: 18px;
	padding-top: 5px;
	padding-bottom: 5px;
	height: 35px;
	font-size: 14px;
	line-height: 25px;
	background-color: rgba(0,0,0,0);
	border-radius: 2px;
}

.btn-flat:not(.disabled):not([disabled]):active {
	background-color: rgba(189,189,189,0.2);
}

.btn-raised {
	padding-left: 15px;
	padding-right: 15px;
	padding-top: 5px;
	padding-bottom: 5px;
	height: 36px;
	font-size: 14px;
	line-height: 26px;
	min-width: 88px;
	background-color: rgba(0,0,0,0);
	border-radius: 2px;
	box-shadow: 0 1px 2px #AAAAAA;
}

.btn-float {
	padding: 16px;
	margin: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	box-shadow: 1px 1px 2px #999999;
}

.btn-float>* {
	display: block;
	margin: 0;
	padding: 0;
	height: 20px;
	width: 20px;
	line-height: 20px;
	font-size: 22px;
}

.btn-flat-white,
.btn-flat-white:visited {
	color: #292929;
}

.btn-white,
.btn-white:visited {
	color: #292929;
	background-color: #FFFFFF;
}

.btn-white:active,
.btn-white.active {
	background-color: #DEDEDE;
}

.btn-white.disabled,
.btn-white[disabled],
.btn-white.disabled:active,
.btn-white[disabled]:active,
.btn-white.disabled.active,
.btn-white[disabled].active {
	background-color: #E0E0E0;
}

.btn-flat-blue,
.btn-flat-blue:visited {
	color: #2196F3;
}

.btn-blue,
.btn-blue:visited {
	color: #FFFFFF;
	background-color: #2196F3;
}

.btn-blue:active,
.btn-blue.active {
	background-color: #1976D2;
}

.btn-blue.disabled,
.btn-blue[disabled],
.btn-blue.disabled:active,
.btn-blue[disabled]:active,
.btn-blue.disabled.active,
.btn-blue[disabled].active {
	background-color: #64B5F6;
}

.btn-flat-red,
.btn-flat-red:visited {
	color: #F44336;
}

.btn-red,
.btn-red:visited {
	color: #FFFFFF;
	background-color: #F44336;
}

.btn-red:active,
.btn-red.active {
	background-color: #D32F2F;
}

.btn-red.disabled,
.btn-red[disabled],
.btn-red.disabled:active,
.btn-red[disabled]:active,
.btn-red.disabled.active,
.btn-red[disabled].active {
	background-color: #E57373;
}

.btn-flat-green,
.btn-flat-green:visited {
	color: #4CAF50;
}

.btn-green,
.btn-green:visited {
	color: #FFFFFF;
	background-color: #4CAF50;
}

.btn-green:active,
.btn-green.active {
	background-color: #388E3C;
}

.btn-green.disabled,
.btn-green[disabled],
.btn-green.disabled:active,
.btn-green[disabled]:active,
.btn-green.disabled.active,
.btn-green[disabled].active {
	background-color: #81C784;
}

/*
 * 组件：输入框
 * 输入框都包含.input
 * 没有其它什么好说明的了
*/
.input {
	display: inline-block;
	border-radius: 0;
	height: 35px;
	font-size: 16px;
	line-height: 25px;
	outline: none;
	border-bottom: 1px solid #CCC;
	border-top: 0;
	border-left: 0;
	border-right: 0;
	min-width: 200px;
	color: black;
	background-image: none;
	background-color: rgba(255,255,255,0);
	padding-top: 6px;
	padding-bottom: 6px;
	padding-left: 5px;
	padding-right: 5px;
	margin-top: 8px;
	margin-bottom: 8px;
	margin-left: 5px;
	margin-right: 5px;
}

.input:focus,
.input.blue,
.input.red,
.input.green {
	border-bottom-width: 2px;
	padding-bottom: 5px;
}

.input-green:focus {
	border-color: rgb(45,182,0);
}

.input-red:focus {
	border-color: rgb(240,0,0);
}

.input.green,
.input.green:focus {
	border-color: rgb(45,182,0);
}

.input.red,
.input.red:focus {
	border-color: rgb(240,0,0);
}

/*
 * 组件：开关
 * 由js调用生成。js使用方法请参看js文档
*/
.switcher {
	position: relative;
	display: inline-block;
	width: 31px;
	height: 18px;
}

.switcher .line {
	position: absolute;
	top: 9px;
	left: 0;
	height: 2px;
	width: 31px;
	background-color: #E0E0E0;
}

.switcher .button {
	position: absolute;
	top: 1px;
	left: 0;
	width: 18px;
	height: 18px;
	border: 1px solid #9E9E9E;
	background-color: #EEEEEE;
	border-radius: 50%;
	transition: 0.15s;
}

.switcher.on .button {
	left: 13px;
}

.switcher-green.on .line {
	background-color: #66BB6A;
}

.switcher-green.on .button {
	background-color: #4CAF50;
	border-color: #4CAF50;
}

.switcher.disabled {
	opacity: 0.6;
}

/*
 * 组件：提示框
 * 由js调用生成。js使用方法请参看js文档
*/
.dialog {
	position: fixed;
	top: 40%;
	left: 5%;
	width: 90%;
	z-index: 56;
	border-radius: 2px;
	padding-top: 20px;
	padding-bottom: 10px;
	background-color: #FFF;
	box-shadow: 0 0 2px #1D1D1D;
	color: black;
}

.dialog>* {
	display: block;
}

.dialog .dialog-title {
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 20px;
	height: 40px;
	text-align: left;
	font-size: 21px;
	line-height: 40px;
}

.dialog .dialog-content {
	font-size: 17px;
	line-height: 25px;
	padding-left: 20px;
	padding-right: 20px;
}

.dialog .dialog-btn {
	padding-left: 20px;
	padding-right: 18px;
}

.dialog .dialog-btn>* {
	float: right;
	margin-left: 2px;
}

/* 标题栏 */
.TitleBar {
	width: 100%;
	height: 55px;
	padding-top: 3px;
	padding-bottom: 3px;
	overflow: hidden;
	position: absolute;
	z-index: 44;
	top: 0;
	left: 0;
	border-top: 1px solid black;
	box-shadow: 0 0 2px #848484;
}

.TitleBar.fixed-top {
	position: fixed;
}

.TitleBar * {
	display: inline-block;
	vertical-align: middle;
}

.TitleBar .title,
.TitleBar .button {
	padding-top: 10px;
	padding-bottom: 10px;
	height: 49px;
	overflow: hidden;
	margin: 0;
}

.TitleBar .button {
	line-height: 20px;
	font-size: 22px;
	min-width: 49px;
	text-align: center;
	padding-left: 5px;
	padding-right: 5px;
	border-style: solid;
	border-width: 0;
}

.TitleBar .button>* {
	height: 29px;
}

.TitleBar .button:active {
	background-color: rgba(255,255,255,0.2);
}

.TitleBar .button-left {
	float: left;
}

.TitleBar .title {
	line-height: 29px;
	font-size: 20px;
	width: auto;
	padding-right: 5px;
	padding-left: 5px;
	white-space: nowrap;
	text-overflow: ellipsis;
	float: left;
	margin: 0;
	text-align: left;
}

.TitleBar .right-btns {
	float: right;
}

/* 组件：列表 */
.list {
	display: block;
	list-style: none;
	padding: 0;
	margin: 0;
	vertical-align: top;
}

.list>* {
	display: block;
}

.list .hr {
	display: block;
	padding: 0;
	width: 100%;
	height: 1px;
	background-color: #E0E0E0;
	margin: 10px 0 10px 0;
}

.list .item {
	padding-left: 16px;
	padding-right: 16px;
}

.list .item:active {
	background-color: #E0E0E0;
}

.list .item .left,
.list .item .content,
.list .item .right {
	display: inline-block;
	vertical-align: middle;
	height: 100%;
	padding-top: 8px;
	padding-bottom: 8px;
}

.list.right-border .content,
.list.right-border .right {
	border-bottom: 1px solid #E0E0E0;
}

.list .item label {
	display: block;
	width: 100%;
	background: none;
}

.list .item .left.img {
	margin-right: 16px;
	width: 40px;
	height: 100%;
}

.list .item .left.icon {
	text-align: center;
	font-size: 25px;
	margin-right: 16px;
	width: 20px;
}

.list .item .left.img img {
	display: block;
	height: 40px;
	width: 40px;
	border-radius: 50%;
}

.list .item .content {
	width: auto;
}

.list .item .content .title {
	font-size: 16px;
	margin: 0;
}

.list .item .content .small {
	font-size: 14px;
	margin: 0;
}

/*
 * 宫格
*/
.GongGe {
	padding: 0;
	margin: 0;
	vertical-align: top;
	width: 100%;
}

.GongGe .item {
	border: 0;
	padding: 20px;
	min-width: 120px;
	height: 140px;
	text-align: center;
	margin: 0;
}

.GongGe .item:active {
	background-color: #E6E6E6;
}

.GongGe .item img {
	margin: 0 auto;
	display: block;
	width: 80px;
	height: 80px;
}

.GongGe .item p {
	display: block;
	height: 20px;
	margin: 0 auto;
	width: 80px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/*
 * 底部动作条
*/
.BottomSheet {
	position: fixed;
	z-index: 62;
	left: 0;
	bottom: 0;
	width: 100%;
	background-color: white;
	padding: 0;
}

.BottomSheet .btn.block {
	width: 100%;
	margin: 0;
}

/* 菜单栏 */
.menu {
	display: block;
	height: 100%;
	overflow-y: scroll;
	overflow-x: hidden;
	position: fixed;
	left: -1000px;
	top: 1px;
	z-index: 56;
	width: 50%;
	max-width: 300px;
	transition: 0.2s;
	padding-top: 0;
	background-color: #EEEEEE;
}

.menu .menu-heading {
	height: 150px;
	background-size: cover;
	padding: 16px;
}

.menu .menu-heading img:first-child {
	border-radius: 50%;
	width: 75px;
	height: 75px;
	background-color: #FFFFFF;
}

.menu .menu-heading p:last-child {
	color: white;
}

.menu .list a {
	display: block;
	color: black;
}

.menu-group>.item .item a {
	color: #414141;
}

.menu-group>.item>a {
	display: block;
	height: 30px;
	line-height: 30px;
	font-size: 17px;
	padding: 15px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.menu-group>.item.active>a {
	font-weight: bold;
}

.menu-group>.item>a .fa {
	font-size: 25px;
	margin-right: 10px;
	vertical-align: middle;
}

.menu-group>.item .item a {
	font-size: 14px;
	display: block;
	height: 30px;
	line-height: 30px;
	padding: 4px;
	padding-left: 30px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.menu-group>.item .item a .fa {
	width: 15px;
	text-align: center;
	margin-right: 10px;
}

.menu-group .item .more {
	float: right;
	font-size: 20px;
	display: inline-block;
	transition: 0.2s;
}

.menu-group .item ul {
	display: none;
}

.menu-group .item.active ul {
	display: block;
}

/* 组件：pull */
.pull {
	text-align: center;
	height: 30px;
	line-height: 30px;
	font-size: 16px;
}

.pull .loading {
	margin-right: 2px;
}

/* 组件：more */
ul.more {
	width: 200px;
	overflow-y: scroll;
	display: block;
	max-height: 160px;
	position: absolute;
	z-index: 47;
	list-style: none;
	padding: 0;
	margin: 0;
	box-shadow: 0 0 5px #999999;
}

ul.more li {
	display: block;
	padding: 10px;
	height: 45px;
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 18px;
	line-height: 25px;
	margin: 0;
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

ul.more li:last-child {
	border-bottom-width: 0;
}
/* 组件：右下角浮动按钮 */
.float-btns {
	position: fixed;
	right: 15px;
	bottom: 15px;
	height: 56px;
	/*overflow: hidden;*/
	transition: 0.15s;
	margin-bottom: 0;
	z-index: 50;
}

.float-btns.out {
	margin-bottom: -100px;
}

.float-btns.hide {
	display: none;
}

.float-btns>* {
	margin-right: 5px;
}

.float-btns>*:last-child {
	margin-right: 1px;
}

/* 组件：Welcome */
#wrapper .welcome {
	padding-top: 0;
}

.welcome .header {
	width: 100%;
	height: 200px;
	line-height: 200px;
	font-size: 60px;
	text-align: center;
	padding: 20px;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
}

.welcome .content {
	width: 100%;
	margin-top: 10px;
	padding: 10px;
	padding-top: 200px;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
}

/*
 * 一些特殊属性
 * 放到CSS底部，保证覆盖
*/
.text-center {
	text-align: center;
}

.block {
	display: block;
}

.no-padding {
	padding: 0;
}